<!--
  @author duanzuocai
  @since 2018/10/23 15:12
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common::confJscss"/>
<body>

<div class="layui-fluid">

    <div class="layui-card">

        <div class="layui-card-body">

            <!--表单样式统一为layui-form(必需样式)，lay-filter属性统一定义为zmn-form-->
            <form method="POST" action="" class="layui-form" lay-filter="zmn-form">

                <input type="hidden" name="answerId" th:value="${returnvisitanswer.answerId}"/>
                <div class="layui-form-item">
                    <label class="layui-form-label layui-form-required">回访答案：</label>
                    <div class="layui-input-inline" style="width: 430px">
                        <input type="text" placeholder="请输入新增回访答案" lay-verify="required" name="answer" th:value="${returnvisitanswer.answer}" autocomplete="off" class="layui-input" maxlength="20"/>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label layui-form-required">排序ID：</label>
                    <div class="layui-input-inline" style="width:200px;">
                        <input type="number" name="sort" autocomplete="off" class="layui-input" th:value="${returnvisitanswer.sort}"
                               lay-verify="required|sort"  onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')">
                    </div>
                    <div class="layui-input-inline" style="width:160px;">
                        <label class="layui-form-mid" style="color: #9F9F9F;">数字越小，在越前面</label>
                    </div>
                </div>

                <!--按钮栏
                    置于form标签内的最下方，
                    主功能按钮使用默认样式，次要功能按钮使用原始按钮(加入样式layui-btn-primary)
                    -->
                <div class="layui-form-item submit">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit">提交</button>
                        <button onclick="parent.layui.element.tabDelete('layadmin-layout-tabs', window.location.pathname + window.location.search)" class="layui-btn layui-btn-primary" id="cancel">取消</button>
                    </div>
                </div>
            </form>
        </div>
    </div>

</div>
</body>
</html>

<script type="text/javascript" th:inline="javascript">

    layui.config({
        base: "/static/js/module/",
        version: version
    }).extend({
        oms_conf_reply_answer_detail: "conf/reply/answer/zmn.oms.conf.reply.answer.detail",
    }).use(['oms_conf_reply_answer_detail']);

</script>